// src/router/index.js
import { createRouter, createWebHistory } from 'vue-router';
import Home from '../views/Home.vue';
import { compareTime } from 'element-plus/es/components/time-select/src/utils.mjs';
import component from 'element-plus/es/components/tree-select/src/tree-select-option.mjs';

const routes = [
    {
        path: '/',
        name:'home',
        component: ()=>import('../views/Home.vue')
    },
    {
        path:'/mine',
        name:'mine',
        component:()=>import('../views/mine/index.vue')
    },
    {
        path:'/login',
        name:'login',
        component:()=>import('../views/login/index.vue')
    },
    {
        path:'/qrcode',
        name:'qrcode',
        component:()=>import('../views/qrcode/index.vue')
    },
    {
        path:'/vant',
        name:'vant',
        component:()=>import('../views/vant/index.vue')
    },
    {
        path:'/aiFlux',
        name:'aiFlux',
        component:()=>import('../views/ai/ai-flux.vue')
    },
    {
        path:'/aiOrgFlux',
        name:'aiOrgFlux',
        component:()=>import('../views/ai/ai-origin-flux.vue')
    }
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;